#pragma once
#include "headers.h"
#include "tools/my_tlv.h"

int loginControl(int fd, MYSQL *conn, char username[]);

int regisControl(int fd, MYSQL *conn, char username[]);

int dirControl(int fd, MYSQL *conn, train_t *tdata_get);

int recvFileControl(int fd, MYSQL *conn, train_t *tdata_get);

int mkdir_control(int fd, MYSQL *conn, train_t *train);

int rmdir_control(int fd, MYSQL *conn, train_t *train);

int lsControl(int fd, MYSQL *conn, train_t *train);

int pwdControl(int fd, MYSQL *conn, train_t *train) ;

int longCmdTranfor(int fd,MYSQL *conn,train_t *train);